TEL1 Logo
Arbeits‑Portal
offline ohne externe URLs
⚙️ Admin ➡️ Zum Portal

Übersicht

EintrÄge
0
Heute erstellt
0
Kategorien
0

Tipp: Alles funktioniert offline. Importiere unten Daten oder erstelle neue EintrÄge im Admin.

Manifest‑Forum: Teilnahme für Einsteiger (Download + Erklärung)

Warum Download? Damit jeder ohne Login/Internet Beiträge verfassen kann. Die Datei funktioniert offline. Später kannst du alles mit einem Klick ins Portal übertragen.

Manifest‑Forum herunterladen
Eintrag bearbeiten
`; } // Remote API (optional) const API_BASE = detectApiBase(); function detectApiBase(){ // If deployed under a domain with /api route available, use relative '/api' // If running file:// or localhost without worker, stay null try{ const isFile = location.protocol === 'file:'; if(isFile) return null; // quick health check cached per session const cached = sessionStorage.getItem('portal.apiBase'); if(cached==='none') return null; if(cached) return cached; fetch('./api/status', { method:'GET' }) .then(r=> r.ok ? r.json() : Promise.reject()) .then(()=> sessionStorage.setItem('portal.apiBase', './api')) .catch(()=> sessionStorage.setItem('portal.apiBase', 'none')); return null; }catch{ return null; } } function trySubmitRemote(obj){ if(!API_BASE) return; fetch('./api/submit', { method:'POST', headers:{ 'content-type':'application/json' }, body: JSON.stringify(obj) }).catch(()=>{/* ignore network errors; local copy persists */}); } // Hinweis beim Manifest-Download: Desktop-Verknüpfung & Installation try{ const dl = document.getElementById('manifestDownloadLink'); if(dl){ dl.addEventListener('click', function(e){ if(localStorage.getItem('portal.manifestDesktopHintShown') === '1') return; e.preventDefault(); const msg = [ 'Manifest-Forum wird jetzt heruntergeladen.', 'Empfohlene nächsten Schritte:', '', '1) Speichere die Datei an einem festen Ort (z.B. Dokumente/ManifestForum).', '2) Lege dir eine Desktop-Verknüpfung an (Rechtsklick → „Senden an" → „Desktop (Verknüpfung erstellen)").', '3) Auf dem Handy kannst du das Portal später als „App" zum Startbildschirm hinzufügen (Browser-Hinweis).', '', 'Weiter mit Download?' ].join('\n'); const ok = window.confirm(msg); localStorage.setItem('portal.manifestDesktopHintShown', '1'); if(ok){ window.location.href = dl.href; } }, { once:false }); } }catch{} })();